package com.feicheng.lanniao.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.feicheng.lanniao.entity.PayCost;
import com.feicheng.lanniao.result.ResultInfo;
import com.feicheng.lanniao.service.IPayCostService;


/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author feichengTech
 * @since 2021-09-02
 */
@RestController
@RequestMapping("/lanniao-admin/pay-cost")
public class PayCostController {
	@Autowired 
	private IPayCostService iPayCostService;
	
	@GetMapping("/list")
	public ResultInfo getList() {
		return iPayCostService.getList();
	}
	@GetMapping("/info")
	public ResultInfo getOne(Integer orderTypeId) {
		return iPayCostService.getOne(orderTypeId);
	}
	@PutMapping("/info")
	public ResultInfo updateOne(PayCost payCost) {
		return iPayCostService.updateOne(payCost);
	}
}
